ordered.py 378 B

123456789101112131415
  1. from collections import OrderedDict
  2. from pip._vendor.toml import TomlEncoder
  3. from pip._vendor.toml import TomlDecoder
  4. class TomlOrderedDecoder(TomlDecoder):
  5. def __init__(self):
  6. super(self.__class__, self).__init__(_dict=OrderedDict)
  7. class TomlOrderedEncoder(TomlEncoder):
  8. def __init__(self):
  9. super(self.__class__, self).__init__(_dict=OrderedDict)